package com.linkage.seapeak.pojo;

import com.linkage.jz.bankruptcy.bean.MyProInfo;
import com.linkage.jz.bankruptcy.bean.MyProInfoAuth;
import com.linkage.jz.bankruptcy.bean.ObjValInfo;

import java.util.ArrayList;

public class TempProject {




    private String id;
    private String debtorName;
    private ProjectStatusBean projectStatus;
    private ProjectTypeBean projectType;
    private String projectName;
    private String projectLogo;
    private String projectNote;
    private String courtName;

    public TempProProject getProjectInfo() {
        return projectInfo;
    }

    public void setProjectInfo(TempProProject projectInfo) {
        this.projectInfo = projectInfo;
    }

    private  TempProProject projectInfo;
    public String getCreditorId() {
        return creditorId;
    }

    public void setCreditorId(String creditorId) {
        this.creditorId = creditorId;
    }

    private String creditorId;

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    private String contacts;
    private String contactPhone;
    private String caseNumber;
    private String debtorLegalRepresentative;
    private String sysAddressId;
    private int claimFilingStartTime;
    private int claimFilingEndTime;
    private boolean CRNoticeSend;
    private PublicStatusBean publicStatus;
    private String publicSection;
    private boolean close;
    private boolean allowJoin;
    private boolean closeClaimFiling;
    private boolean openDiscussion;
    private boolean allowCreditorsChangInfo;
    private boolean displayedInstantly;
    private boolean creditorsVisibleDetails;
    private boolean openAdministratorList;
    private boolean openAdministratorInfo;
    private boolean openCreditorsList;
    private boolean openCreditorsInfo;
    private SmsScopeBean smsScope;
    private String creator;
    private int creationTime;
    private String opBy;
    private int opAt;
    private boolean delFlag;


    private String creditorNum = "";
    private String managersTeamNum = "";
    private String otherMemberNum = "";

    public String getDebtorAddressDetail() {
        return debtorAddressDetail;
    }

    public void setDebtorAddressDetail(String debtorAddressDetail) {
        this.debtorAddressDetail = debtorAddressDetail;
    }

    private String debtorAddressDetail;

    private String managerListStr = "";
    private String debtorYyzzFileListStr = "";

    private String otherMemberId="";

    private String otherMemberName="";
    private  String otherMemberRole = "";
    private String courtSlwsFileListStr = "";

    private String courtManagerFileListStr = "";
    private String otherFileListStr = "";


    private Object manager;
    private Object otherMember;
    private String joinId;
    private String managerId;
    public ArrayList<ManagersInfo> managersList;



    public String getCreditorNum() {
        return creditorNum;
    }

    public void setCreditorNum(String creditorNum) {
        this.creditorNum = creditorNum;
    }

    public String getManagersTeamNum() {
        return managersTeamNum;
    }

    public void setManagersTeamNum(String managersTeamNum) {
        this.managersTeamNum = managersTeamNum;
    }

    public String getOtherMemberNum() {
        return otherMemberNum;
    }

    public void setOtherMemberNum(String otherMemberNum) {
        this.otherMemberNum = otherMemberNum;
    }

    public String getManagerListStr() {
        return managerListStr;
    }

    public void setManagerListStr(String managerListStr) {
        this.managerListStr = managerListStr;
    }

    public String getDebtorYyzzFileListStr() {
        return debtorYyzzFileListStr;
    }

    public void setDebtorYyzzFileListStr(String debtorYyzzFileListStr) {
        this.debtorYyzzFileListStr = debtorYyzzFileListStr;
    }

    public String getOtherMemberId() {
        return otherMemberId;
    }

    public void setOtherMemberId(String otherMemberId) {
        this.otherMemberId = otherMemberId;
    }

    public String getOtherMemberName() {
        return otherMemberName;
    }

    public void setOtherMemberName(String otherMemberName) {
        this.otherMemberName = otherMemberName;
    }

    public String getOtherMemberRole() {
        return otherMemberRole;
    }

    public void setOtherMemberRole(String otherMemberRole) {
        this.otherMemberRole = otherMemberRole;
    }

    public String getCourtSlwsFileListStr() {
        return courtSlwsFileListStr;
    }

    public void setCourtSlwsFileListStr(String courtSlwsFileListStr) {
        this.courtSlwsFileListStr = courtSlwsFileListStr;
    }

    public String getCourtManagerFileListStr() {
        return courtManagerFileListStr;
    }

    public void setCourtManagerFileListStr(String courtManagerFileListStr) {
        this.courtManagerFileListStr = courtManagerFileListStr;
    }

    public String getOtherFileListStr() {
        return otherFileListStr;
    }

    public void setOtherFileListStr(String otherFileListStr) {
        this.otherFileListStr = otherFileListStr;
    }

    public Object getManager() {
        return manager;
    }

    public void setManager(Object manager) {
        this.manager = manager;
    }

    public Object getOtherMember() {
        return otherMember;
    }

    public void setOtherMember(Object otherMember) {
        this.otherMember = otherMember;
    }

    public String getJoinId() {
        return joinId;
    }

    public void setJoinId(String joinId) {
        this.joinId = joinId;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public ArrayList<ManagersInfo> getManagersList() {
        return managersList;
    }

    public void setManagersList(ArrayList<ManagersInfo> managersList) {
        this.managersList = managersList;
    }




    public MyProInfoAuth getAuth() {
        return auth;
    }

    public void setAuth(MyProInfoAuth auth) {
        this.auth = auth;
    }

    private MyProInfoAuth auth;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDebtorName() {
        return debtorName;
    }

    public void setDebtorName(String debtorName) {
        this.debtorName = debtorName;
    }

    public ProjectStatusBean getProjectStatus() {
        return projectStatus;
    }

    public void setProjectStatus(ProjectStatusBean projectStatus) {
        this.projectStatus = projectStatus;
    }

    public ProjectTypeBean getProjectType() {
        return projectType;
    }

    public void setProjectType(ProjectTypeBean projectType) {
        this.projectType = projectType;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectLogo() {
        return projectLogo;
    }

    public void setProjectLogo(String projectLogo) {
        this.projectLogo = projectLogo;
    }

    public String getProjectNote() {
        return projectNote;
    }

    public void setProjectNote(String projectNote) {
        this.projectNote = projectNote;
    }

    public String getCourtName() {
        return courtName;
    }

    public void setCourtName(String courtName) {
        this.courtName = courtName;
    }

    public String getCaseNumber() {
        return caseNumber;
    }

    public void setCaseNumber(String caseNumber) {
        this.caseNumber = caseNumber;
    }

    public String getDebtorLegalRepresentative() {
        return debtorLegalRepresentative;
    }

    public void setDebtorLegalRepresentative(String debtorLegalRepresentative) {
        this.debtorLegalRepresentative = debtorLegalRepresentative;
    }

    public String getSysAddressId() {
        return sysAddressId;
    }

    public void setSysAddressId(String sysAddressId) {
        this.sysAddressId = sysAddressId;
    }

    public int getClaimFilingStartTime() {
        return claimFilingStartTime;
    }

    public void setClaimFilingStartTime(int claimFilingStartTime) {
        this.claimFilingStartTime = claimFilingStartTime;
    }

    public int getClaimFilingEndTime() {
        return claimFilingEndTime;
    }

    public void setClaimFilingEndTime(int claimFilingEndTime) {
        this.claimFilingEndTime = claimFilingEndTime;
    }

    public boolean isCRNoticeSend() {
        return CRNoticeSend;
    }

    public void setCRNoticeSend(boolean CRNoticeSend) {
        this.CRNoticeSend = CRNoticeSend;
    }

    public PublicStatusBean getPublicStatus() {
        return publicStatus;
    }

    public void setPublicStatus(PublicStatusBean publicStatus) {
        this.publicStatus = publicStatus;
    }

    public String getPublicSection() {
        return publicSection;
    }

    public void setPublicSection(String publicSection) {
        this.publicSection = publicSection;
    }

    public boolean isClose() {
        return close;
    }

    public void setClose(boolean close) {
        this.close = close;
    }

    public boolean isAllowJoin() {
        return allowJoin;
    }

    public void setAllowJoin(boolean allowJoin) {
        this.allowJoin = allowJoin;
    }

    public boolean isCloseClaimFiling() {
        return closeClaimFiling;
    }

    public void setCloseClaimFiling(boolean closeClaimFiling) {
        this.closeClaimFiling = closeClaimFiling;
    }

    public boolean isOpenDiscussion() {
        return openDiscussion;
    }

    public void setOpenDiscussion(boolean openDiscussion) {
        this.openDiscussion = openDiscussion;
    }

    public boolean isAllowCreditorsChangInfo() {
        return allowCreditorsChangInfo;
    }

    public void setAllowCreditorsChangInfo(boolean allowCreditorsChangInfo) {
        this.allowCreditorsChangInfo = allowCreditorsChangInfo;
    }

    public boolean isDisplayedInstantly() {
        return displayedInstantly;
    }

    public void setDisplayedInstantly(boolean displayedInstantly) {
        this.displayedInstantly = displayedInstantly;
    }

    public boolean isCreditorsVisibleDetails() {
        return creditorsVisibleDetails;
    }

    public void setCreditorsVisibleDetails(boolean creditorsVisibleDetails) {
        this.creditorsVisibleDetails = creditorsVisibleDetails;
    }

    public boolean isOpenAdministratorList() {
        return openAdministratorList;
    }

    public void setOpenAdministratorList(boolean openAdministratorList) {
        this.openAdministratorList = openAdministratorList;
    }

    public boolean isOpenAdministratorInfo() {
        return openAdministratorInfo;
    }

    public void setOpenAdministratorInfo(boolean openAdministratorInfo) {
        this.openAdministratorInfo = openAdministratorInfo;
    }

    public boolean isOpenCreditorsList() {
        return openCreditorsList;
    }

    public void setOpenCreditorsList(boolean openCreditorsList) {
        this.openCreditorsList = openCreditorsList;
    }

    public boolean isOpenCreditorsInfo() {
        return openCreditorsInfo;
    }

    public void setOpenCreditorsInfo(boolean openCreditorsInfo) {
        this.openCreditorsInfo = openCreditorsInfo;
    }

    public SmsScopeBean getSmsScope() {
        return smsScope;
    }

    public void setSmsScope(SmsScopeBean smsScope) {
        this.smsScope = smsScope;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public int getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(int creationTime) {
        this.creationTime = creationTime;
    }

    public String getOpBy() {
        return opBy;
    }

    public void setOpBy(String opBy) {
        this.opBy = opBy;
    }

    public int getOpAt() {
        return opAt;
    }

    public void setOpAt(int opAt) {
        this.opAt = opAt;
    }

    public boolean isDelFlag() {
        return delFlag;
    }

    public void setDelFlag(boolean delFlag) {
        this.delFlag = delFlag;
    }

    public static class ProjectStatusBean {
        /**
         * value : 2
         * text : 程序中
         */

        private int value;
        private String text;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    public static class ProjectTypeBean {
        /**
         * value : 0
         * text : 破产清算
         */

        private int value;
        private String text;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    public static class PublicStatusBean {
        /**
         * value : 0
         * text : 公开
         */

        private int value;
        private String text;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    public static class SmsScopeBean {
        /**
         * value : 0
         * text : 全体债权人
         */

        private int value;
        private String text;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    /**
     * 转化数据
     * @param info
     * @return
     */
    public MyProInfo turnData(MyProInfo info) {
        info.setId(projectInfo.getId());
        info.setProjectName(projectInfo.getProjectName());
//        info.setAuth(auth);
//        ObjValInfo objValInfo = new ObjValInfo();
//        objValInfo.setValue(publicStatus.getValue()+"");
//        objValInfo.setText(publicStatus.getText());
        info.setPublicStatus(projectInfo.getPublicStatus().getValue()+"");
        info.setSmsScope(projectInfo.getSmsScope().getValue()+"");
        info.setProjectType(projectInfo.getProjectType().getValue()+"");
        info.setPublicSection(projectInfo.getPublicSection().toString());
        info.setCreditorId(creditorId);
        info.setClose(projectInfo.isClose() + "");
        info.setAllowJoin(projectInfo.isAllowJoin() + "");
        info.setCloseClaimFiling(projectInfo.isCloseClaimFiling() + "");
        info.setOpenDiscussion(projectInfo.isOpenDiscussion() + "");
        info.setAllowCreditorsChangInfo(projectInfo.isAllowCreditorsChangInfo() + "");
        info.setDisplayedInstantly(projectInfo.isDisplayedInstantly() + "");
        info.setCreditorsVisibleDetails(projectInfo.isCreditorsVisibleDetails() + "");
        info.setOpenAdministratorInfo(projectInfo.isOpenAdministratorInfo() + "");
        info.setOpenAdministratorList(projectInfo.isOpenAdministratorList() + "");
        info.setOpenCreditorsInfo(projectInfo.isOpenCreditorsInfo() + "");
        info.setOpenCreditorsList(projectInfo.isOpenCreditorsList() + "");
        info.setCourtName(projectInfo.getCourtName() + "");
        info.setCaseNumber(projectInfo.getCaseNumber() + "");
        info.setProjectNote(projectInfo.getProjectNote() + "");

        info.setDebtorLegalRepresentative(projectInfo.getDebtorLegalRepresentative());
        info.setDebtorAddressDetail(debtorAddressDetail);

        info.setContacts(projectInfo.getContacts() + "");
        info.setContactPhone(projectInfo.getContactPhone() + "");

        info.setJoinId(projectInfo.getJoinId());
        info.setCreditorNum(creditorNum);

        info.setManagersTeamNum(managersTeamNum);
        info.setOtherMemberNum(otherMemberNum);

        info.setManagerListStr(managerListStr);


        info.setOtherMemberId(otherMemberId);

        info.setOtherMemberName(otherMemberName);

        info.setOtherMemberRole(otherMemberRole);


        info.setCourtSlwsFileListStr(courtSlwsFileListStr);

        info.setManager(manager);

        info.setOtherMember(otherMember);
        info.setJoinId(joinId);
        info.setManagerId(managerId);

        info.setManagersList(managersList);
//        public ArrayList<ManagersInfo> managersList;



        return info;
    }
}
